package cn.jja8.config.tool.work.obj.common;

import java.util.ArrayList;
import java.util.List;

public class KeepLFloat implements CommonKeep<float[]> {
    @Override
    public float[] in(Object con) {
        List<?> list = ((List<?>)con);
        float[] booleans = new float[list.size()];
        for (int i = 0; i < list.size(); i++) {
            booleans[i] = Float.parseFloat(list.get(i).toString());
        }
        return booleans;
    }

    @Override
    public Object out(float[] s) {
        List list = new ArrayList(s.length);
        for (int i = 0; i < s.length; i++) {
            list.add(s[i]);
        }
        return list;
    }
}
